package java_oop.demo08;

/**
 * @author IT_Jay
 * @date 2022/1/26 18:00
 */

//static
public class Student {
    private static int age;     //静态变量      多线程
    private double score;       //非静态变量

    public void run(){
        Student.go();       //非静态方法调用静态方法    也可以写为  go();
    }
    public static void go(){

    }

    public static void main(String[] args) {
        Student s1 = new Student();
        System.out.println(Student.age);
//        System.out.println(Student.score);      //报错
        System.out.println(s1.age);
        System.out.println(s1.score);

        new Student().run();
        go();
    }
}
